package com.cloudlead.commonData.vo;

import com.cloudlead.common.lang.persistence.AbstractIdEntity;

import com.cloudlead.commonData.action.validator.BaseFleetValidatorGroup.*;

import javax.validation.constraints.Size;
import com.cloudlead.common.lang.annotation.BelongsTos;
import com.cloudlead.common.lang.annotation.Domain;
import com.cloudlead.common.lang.annotation.Label;
import java.lang.String;
import javax.validation.constraints.NotNull;
import com.cloudlead.commonData.vo.BaseCompany;

/**
 * BaseFleet is a Codegen vo type
 */
@Label("车队基本信息")
@BelongsTos(values = {
	@com.cloudlead.common.lang.annotation.BelongsTo(property="baseCompany", rootField="baseCompanyId")
})
@Domain(domainClassName="com.cloudlead.commonData.entity.EBaseFleet")
public class BaseFleet extends AbstractIdEntity<String> {

    private static final long serialVersionUID =13151037257254L;    
    @Label("联系地址")
    @Size(max=45)
    private String address;

    @NotNull(groups={Create.class,Update.class})
    @Label("baseCompanyId")
    private BaseCompany baseCompany;

    @Label("备注")
    @Size(max=256)
    private String comments;

    @Label("所属企业")
    @Size(max=45)
    private String company;

    @Label("联系人姓名")
    @Size(max=45)
    private String contactsName;

    @Label("删除标志")
    @Size(max=45)
    private String flag;

    @Label("车队名称")
    @Size(max=45)
    private String fleetName;

    @Label("车队类别")
    @Size(max=45)
    private String fleetSort;

    @NotNull(groups={Update.class})
    @Label("id")
    @Size(max=24)
    private String id;

    @Label("联系电话")
    @Size(max=45)
    private String mobile;

    @Label("状态")
    @Size(max=45)
    private String status;

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public BaseCompany getBaseCompany() {
        return baseCompany;
    }

    public void setBaseCompany(BaseCompany baseCompany) {
        this.baseCompany = baseCompany;
    }

    public String getComments() {
        return comments;
    }

    public void setComments(String comments) {
        this.comments = comments;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getContactsName() {
        return contactsName;
    }

    public void setContactsName(String contactsName) {
        this.contactsName = contactsName;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public String getFleetName() {
        return fleetName;
    }

    public void setFleetName(String fleetName) {
        this.fleetName = fleetName;
    }

    public String getFleetSort() {
        return fleetSort;
    }

    public void setFleetSort(String fleetSort) {
        this.fleetSort = fleetSort;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String toString() {
         return String.format("BaseFleet { address : %s,baseCompany : %s,comments : %s,company : %s,contactsName : %s,flag : %s,fleetName : %s,fleetSort : %s,id : %s,mobile : %s,status : %s }",address,baseCompany,comments,company,contactsName,flag,fleetName,fleetSort,id,mobile,status);
    }

}

